#ifndef GLOBAL_H
#define GLOBAL_H
#include <allegro.h>
#include "Player.h"
#define SCREEN_W_ 640
#define SCREEN_H_ 480
class Global
{
    public:
        BITMAP *buffer;
        bool running;
        Player *p;

        static Global* getInstance()
        {
            if(!instance)
                instance = new Global;
            return instance;
        }
        void initializeGame();
        void updateGame();
        void drawGame();

    private:
        Global()
        {
            running = true;
        }
        static Global* instance;
};

#endif // GLOBAL_H
